package org.come.Jpanel;

import com.tool.btn.*;
import org.come.bean.ConfigureBean;
import org.come.bean.LoginResult;
import org.come.until.*;

import java.awt.*;

import com.tool.tcp.SpriteFactory;
import com.tool.time.TimeLimit;
import com.updateNew.MyIsif;
import com.tool.image.ImageMixDeal;
import java.awt.image.ImageObserver;
import java.math.BigDecimal;

import com.tool.role.RoleProperty;
import org.come.Frame.MsgJframe;

import java.awt.event.MouseEvent;
import javax.swing.Icon;

import org.come.mouslisten.WLLMouslisten;
import com.tool.role.RoleData;
import java.awt.event.MouseListener;

import com.tool.tcpimg.UIUtils;
import com.tool.tcp.NewPart;
import org.come.bean.PathPoint;
import org.come.model.Configure;

import org.come.mouslisten.GoodsMouslisten;
import org.come.mouslisten.TakeOffEquipmentMouslisten;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.util.List;
import java.util.Map;

import javax.swing.JPanel;



@SuppressWarnings("serial")
public class TestpackJapnel extends JPanel {
    private List<ImageIcon> imgIconList;
    private int TeamStateS;
    private GoodPanelBtn btnchangepwd;
	private JLabel labZfz;
	private GoodPanelBtn btnTime;
    private GoodPanelBtn btnunlock;
    private GoodPanelBtn btnlock;
    private GoodPanelBtn btnlock1;
    private static MouseStyleBtn moyex;
//    private GoodPanelBtn clearAll;
//    private GoodPanelBtn clearAll1;
	private static GoodPanelBtn clearAll1;
	private static GoodPanelBtn clearAll;
	private static GoodPanelBtn qingli;
    private GoodPanelBtn sb520;
    private GoodAndPetLockBtn btngoodlock;
    private GoodAndPetLockBtn btngoodunlock;
    private JLabel[] choseGoodsJLabel;
    private TakeOffEquipmentMouslisten[] choseGoodsMouslistens;
    private JLabel[] GoodsListLabel;
    private GoodsMouslisten[] goodsMouslistens;
    private boolean shoptext;
    private int goodPosition;
    private JLabel labGemIntensify;
//    private GoodPanelBtn qingli;
    private GoodPanelBtn huishou;

	private GoodPanelBtn xingpan;

	//inkImg/number/b8/smck.png  存款
	private GoodPanelBtn ckBtn;
    private GoodPanelBtn renwuan;
    private GoodPanelBtn exchange;
    private goodbtn[] btnrights;
    private PathPoint point;
    private ImageIcon icon;
	private SpecificBtn btnXxzb;// 形象装扮按钮
    private NewPart part;


    public PathPoint path(int i) {
    	ConfigureBean allConfigure = UserMessUntil.getConfigureBean();
    	Map<BigDecimal, Configure> item = allConfigure.getAllConfigure();
    	Configure configure = item.get(new BigDecimal(1));
    	int szz = 5;//3种族
    	if(configure.getLzjskg()!=null) {
    		szz = Integer.parseInt(configure.getLzjskg());
    	}
        switch (i) {
            case 0: {
                i = 2;
                break;
            }
            case 1: {
                i = 1;
                break;
            }
            case 2: {
                i = 7;
                break;
            }
            case 3: {
                i = 3;
                break;
            }
            case 4: {
                i = 11;
                break;
            }
            case 5: {
                i = 5;
                break;
            }
            case 6: {
                i = 6;
                break;
            }
            case 7: {
                i = 10;
                break;
            }
            case 8: {
                i = 0;
                break;
            }
            case 9: {
                i = 4;
                break;
            }
            case 10: {
                i = 8;
                break;
            }
            case 11: {
                i = 9;
                break;
            }
        }
		if(MyIsif.getStyle().equals("水墨UI")) {
			if(szz == 3) {//装备监听区域
				if(i == 1) {
					point.setX(278);
					point.setY(33);
				}else if(i == 2) {
					point.setX(53);
					point.setY(55);
				}else if(i == 3) {
					point.setX(278);
					point.setY(50 + i / 2 * 55);
				}else if(i == 5) {
					point.setX(281 + i % 2 * 55);
					point.setY(15 + i / 2 * 55);
				}else if(i == 7) {
					point.setX(281 + i % 2 * 55);
					point.setY(50);
				}
			}else {
				if (i < 6) {
					point.setX(50 + i % 2 * 55);
					point.setY(36 + i / 2 * 55);
				} else {
					point.setX(280 + (i - 6) % 2 * 55);
					point.setY(36 + (i - 6) / 2 * 55);
				}
			}
		}else{
			if(szz == 3) {//装备监听区域
				if(i == 1) {
					point.setX(278);
					point.setY(33);
				}else if(i == 2) {
					point.setX(53);
					point.setY(55);
				}else if(i == 3) {
					point.setX(278);
					point.setY(50 + i / 2 * 55);
				}else if(i == 5) {
					point.setX(281 + i % 2 * 55);
					point.setY(15 + i / 2 * 55);
				}else if(i == 7) {
					point.setX(281 + i % 2 * 55);
					point.setY(50);
				}
			}else {
				if (i < 6) {
					point.setX(30 + i % 2 * 56);
					point.setY(47 + i / 2 * 56);
				} else {
					point.setX(260 + (i - 6) % 2 * 56);
					point.setY(47 + (i - 6) / 2 * 56);
				}
			}
		}
        return this.point;
    }


	public static void showIsTeamBtnS(final boolean type, final int num) {
		if (num == 0) {
			TestpackJapnel.clearAll.setVisible(type);
			TestpackJapnel.clearAll1.setVisible(type);
			TestpackJapnel.qingli.setVisible(type);
		}
		else {
			if (TestpackJapnel.clearAll.isVisible()) {
				TestpackJapnel.clearAll.setVisible(false);
				TestpackJapnel.clearAll1.setVisible(false);
				TestpackJapnel.qingli.setVisible(false);
			}
			else {
				TestpackJapnel.clearAll.setVisible(true);
				TestpackJapnel.clearAll1.setVisible(true);
				TestpackJapnel.qingli.setVisible(true);
			}
		}
	}
    public TestpackJapnel() throws Exception {

    	ConfigureBean allConfigure = UserMessUntil.getConfigureBean();
    	Map<BigDecimal, Configure> item = allConfigure.getAllConfigure();
    	Configure configure = item.get(new BigDecimal(1));

		//翅膀开关
		String cbkg = configure.getCbgnkg();
		//星盘开关
		String xpgnkg = configure.getXpgnkg();

		int szz = 5;//3种族
    	if(configure.getLzjskg()!=null) {
    		szz = Integer.parseInt(configure.getLzjskg());
    	}
    	if(szz == 3) {
			if(MyIsif.getStyle().equals("水墨UI")) {
				this.imgIconList = null;
				this.TeamStateS = 0;
				this.choseGoodsJLabel = new JLabel[12];
				this.choseGoodsMouslistens = new TakeOffEquipmentMouslisten[12];
				this.GoodsListLabel = new JLabel[24];
				this.goodsMouslistens = new GoodsMouslisten[24];
				this.shoptext = false;
				this.icon = new ImageIcon("inkImg/newbackground/B104.png");

				this.setPreferredSize(new Dimension(418, 480));
				this.setBackground(UIUtils.Color_BACK);
				this.setLayout(null);
				// 关闭按钮事件
				FormsOnOffBtn offBtn = new FormsOnOffBtn("inkImg/old/2/1.png", 1, 2);
				offBtn.setBounds(409 - 38, 10, 25, 25);
				this.add(offBtn);

				(TestpackJapnel.clearAll = new GoodPanelBtn("skin/8100226/newbutton/syaj.png", 1,"当前物品栏整理")).setBounds(280+20, 230, 117, 24);
				TestpackJapnel.clearAll.setVisible(false);
				this.add((Component)TestpackJapnel.clearAll);
				(TestpackJapnel.clearAll1 = new GoodPanelBtn("skin/8100226/newbutton/syaj.png", 1, "全部物品栏整理")).setBounds(280+20, 230+24, 117, 24);
				TestpackJapnel.clearAll1.setVisible(false);
				this.add((Component)TestpackJapnel.clearAll1);
				(TestpackJapnel.qingli = new GoodPanelBtn("skin/8100226/newbutton/syaj.png", 1,"当前物品栏清理")).setBounds(280+20, 230+24*2, 117, 24);
				TestpackJapnel.qingli.setVisible(false);
				this.add((Component)TestpackJapnel.qingli);
				(TestpackJapnel.moyex = new MouseStyleBtn("skin/8100226/newbutton/B20.png", 1, "整理", "整理")).setBounds(235, 230, 59, 24);
				this.add((Component)TestpackJapnel.moyex);

				point = new PathPoint();
				// 初始化装备jlabel
				for (int i = 0; i < choseGoodsJLabel.length; i++) {
					choseGoodsJLabel[i] = new JLabel();
					PathPoint pathPoint = path(i);
					if(i==0) {
						choseGoodsJLabel[i].setBounds(pathPoint.getX(), pathPoint.getY(), 95, 95);
					}else if(i==3) {
						choseGoodsJLabel[i].setBounds(pathPoint.getX(), pathPoint.getY(), 95, 50);
					}else if(i==5) {
						choseGoodsJLabel[i].setBounds(pathPoint.getX(), pathPoint.getY(), 95, 50);
					}else {
						choseGoodsJLabel[i].setBounds(pathPoint.getX(), pathPoint.getY(), 95, 50);
					}
					choseGoodsMouslistens[i] = new TakeOffEquipmentMouslisten(i);
					choseGoodsJLabel[i].addMouseListener(choseGoodsMouslistens[i]);
					this.add(choseGoodsJLabel[i]);
				}

				int Flag = 0, count = 1;// 用来标记行和列
				// 存放物品的表格1~24
				for (int i = 0; i < 24; i++) {
					GoodsListLabel[i] = new JLabel();
					goodsMouslistens[i] = new GoodsMouslisten(i);
					GoodsListLabel[i].addMouseListener(goodsMouslistens[i]);
					if ((Flag < 6) && (count == 1)) {
						GoodsListLabel[i].setBounds(47 + Flag * 51, 262, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 2)) {
						GoodsListLabel[i].setBounds(47 + Flag * 51, 313, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 3)) {
						GoodsListLabel[i].setBounds(47 + Flag * 51, 364, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 4)) {
						GoodsListLabel[i].setBounds(47 + Flag * 51, 415, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);

					} else if (Flag == 6) {
						Flag = 0;
						count++;
					}
				}

				// 修改密码按钮
				(this.btnchangepwd = new GoodPanelBtn("skin/8100226/newbutton/B31.png", 1,
						"设","",""))
						.addMouseListener((MouseListener)new WLLMouslisten(24));
//				this.btnchangepwd.setBounds(219, 180, 18, 18);
				this.btnchangepwd.setBounds(320, 234, 18, 18);
				this.add((Component)this.btnchangepwd);
				Font font1 = new Font("楷体", 1, 14);final Color colorx1 = new Color(227, 23, 13);
				labZfz = new JLabel();
//				labZfz.setText("Ctrl+右键一键使用物品");
				labZfz.setBounds(140, 12, 200, 14);
				labZfz.setForeground(colorx1);
				labZfz.setFont(font1);
				this.add(labZfz);

				(this.btnTime = new GoodPanelBtn("inkImg/old/pack/smTime.png", 1, ".."))
						.addMouseListener((MouseListener)new WLLMouslisten(24));
				this.btnTime.setBounds(219, 180, 18, 18);
				this.add((Component)this.btnTime);



				//
				(this.btnunlock = new GoodPanelBtn("skin/8100226/newbutton/B31.png", 1, "解","",""))
						.setBounds(241 , 180, 18, 18);

				// 单个物品加锁按钮
				btngoodlock = new GoodAndPetLockBtn("skin/8100226/newbutton/K156.png", 1, 1);
				btngoodlock.setBounds(175, 180, 18, 18);
				this.add(btngoodlock);
				// 单个物品解锁按钮
				btngoodunlock = new GoodAndPetLockBtn("skin/8100226/newbutton/K157.png", 1, 2);
				btngoodunlock.setBounds(197, 180, 18, 18);
				this.add(btngoodunlock);

				btnrights = new goodbtn[6];
				for (int i = 0; i < btnrights.length; i++) {
					btnrights[i] = new goodbtn("skin/8100226/newbutton/C0"+(i+1)+".png", 0, this, i);
					btnrights[i].setBounds(353, 259 + i * 35, 35, 31);
					this.add(btnrights[i]);
				}

				this.renwuan = new GoodPanelBtn("inkImg/old/1/workshop_packbtnRW.png", 1, "..");
				this.renwuan.setBounds(324, 325+5*35, 30, 35);
				this.add(renwuan);

				labGemIntensify = new JLabel();
				labGemIntensify.setBounds(165, 34, 32, 29);
				labGemIntensify.setIcon(GoodsListFromServerUntil.imgpath("gemIntensifyImg"));
				labGemIntensify.addMouseListener(new MouseListener() {




					@Override
					public void mouseReleased(MouseEvent e) {

					}

					@Override
					public void mousePressed(MouseEvent e) {

					}

					@Override
					public void mouseExited(MouseEvent e) {
						FormsManagement.HideForm(46);// 隐藏窗体
					}

					@Override
					public void mouseEntered(MouseEvent e) {
						PathPoint point = GameJpanel.getGameJpanel().mousepath();
						MsgJframe.getJframe().getJapnel()
								.zsGemIntensify(RoleProperty.getRoleProperty().getQhv(), point.getX(), point.getY());
					}

					@Override
					public void mouseClicked(MouseEvent e) {

					}
				});
				labGemIntensify.setOpaque(false);

				//一键回收
				(this.huishou = new GoodPanelBtn("skin/8100226/newbutton/B20.png", 1, "一键回收","","")).addMouseListener((MouseListener)new WLLMouslisten(36));
				this.huishou.setBounds(235, 205, 51, 17);
				this.add((Component)this.huishou);

				(this.xingpan = new GoodPanelBtn("skin/8100226/newbutton/B20.png", 1, "星盘","","")).addMouseListener((MouseListener)new WLLMouslisten(35));
				this.xingpan.setBounds(343, 205, 51, 17);
				this.add((Component)this.xingpan);

				(this.ckBtn = new GoodPanelBtn("inkImg/number/b8/smck.png", 1, "","","")).addMouseListener((MouseListener)new WLLMouslisten(34));
				this.ckBtn.setBounds(187, 202, 40, 17);
				this.add((Component)this.ckBtn);

				btnlock = new GoodPanelBtn("skin/8100226/newbutton/B20.png", 1, "星录",null);
				btnlock.setBounds(318, 230, 59, 24);
				this.add(btnlock);

				// 形象装扮按钮
				btnXxzb = new SpecificBtn("skin/8100226/newbutton/B30.png", 1, UIUtils.COLOR_BTNTEXT, "装扮", 1);
				btnXxzb.setBounds(298, 205, 34, 17);
				this.add(btnXxzb);

				// 在线摆摊
				(this.btnlock1 = new GoodPanelBtn("skin/8100226/newbutton/B30.png", 1, "摆摊","",""))
//						.setBounds(343, 205, 34, 17);
						.setBounds(255, 205, 34, 17);
				this.add((Component)this.btnlock1);
				// 手动设置字体颜色为白色
				this.btnlock1.setForeground(Color.WHITE);


			}else{
				this.imgIconList = null;
				this.TeamStateS = 0;
				this.choseGoodsJLabel = new JLabel[12];
				this.choseGoodsMouslistens = new TakeOffEquipmentMouslisten[12];
				this.GoodsListLabel = new JLabel[24];
				this.goodsMouslistens = new GoodsMouslisten[24];
				this.shoptext = false;
				this.icon = new ImageIcon("inkImg/hongmu/B104h.png");

				this.setPreferredSize(new Dimension(395, 507));
				this.setBackground(UIUtils.Color_BACK);
				this.setLayout(null);
				// 关闭按钮事件
				FormsOnOffBtn offBtn = new FormsOnOffBtn("inkImg/hongmu/1/s74.png", 1, 2);
				offBtn.setBounds(395 - 25, 0, 23, 23);
				this.add(offBtn);

				(TestpackJapnel.clearAll = new GoodPanelBtn("skin/8100226/newbutton/syajh.png", 1, "当前物品栏整理")).setBounds(275, 230+13, 117, 24);
				TestpackJapnel.clearAll.setVisible(false);
				this.add((Component)TestpackJapnel.clearAll);
				(TestpackJapnel.clearAll1 = new GoodPanelBtn("skin/8100226/newbutton/syajh.png", 1, "全部物品栏整理")).setBounds(275, 230+13+24, 117, 24);
				TestpackJapnel.clearAll1.setVisible(false);
				this.add((Component)TestpackJapnel.clearAll1);
				(TestpackJapnel.qingli = new GoodPanelBtn("skin/8100226/newbutton/syajh.png", 1, "当前物品栏清理")).setBounds(275, 230+13+24*2, 117, 24);
				TestpackJapnel.qingli.setVisible(false);
				this.add((Component)TestpackJapnel.qingli);
				(TestpackJapnel.moyex = new MouseStyleBtn("inkImg/hongmu/1/60_26.png", 1, "整理", "整理")).setBounds(215, 230+13, 60, 26);
				this.add((Component)TestpackJapnel.moyex);

				point = new PathPoint();
				// 初始化装备jlabel
				for (int i = 0; i < choseGoodsJLabel.length; i++) {
					choseGoodsJLabel[i] = new JLabel();
					PathPoint pathPoint = path(i);
					if(i==0) {
						choseGoodsJLabel[i].setBounds(pathPoint.getX(), pathPoint.getY(), 95, 95);
					}else if(i==3) {
						choseGoodsJLabel[i].setBounds(pathPoint.getX(), pathPoint.getY(), 95, 50);
					}else if(i==5) {
						choseGoodsJLabel[i].setBounds(pathPoint.getX(), pathPoint.getY(), 95, 50);
					}else {
						choseGoodsJLabel[i].setBounds(pathPoint.getX(), pathPoint.getY(), 95, 50);
					}
					choseGoodsMouslistens[i] = new TakeOffEquipmentMouslisten(i);
					choseGoodsJLabel[i].addMouseListener(choseGoodsMouslistens[i]);
					this.add(choseGoodsJLabel[i]);
				}

				int Flag = 0, count = 1;// 用来标记行和列
				// 存放物品的表格1~24
				for (int i = 0; i < 24; i++) {
					GoodsListLabel[i] = new JLabel();
					goodsMouslistens[i] = new GoodsMouslisten(i);
					GoodsListLabel[i].addMouseListener(goodsMouslistens[i]);
					if ((Flag < 6) && (count == 1)) {
						GoodsListLabel[i].setBounds(28 + Flag * 51, 262+13, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 2)) {
						GoodsListLabel[i].setBounds(28 + Flag * 51, 313+13, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 3)) {
						GoodsListLabel[i].setBounds(28 + Flag * 51, 364+13, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 4)) {
						GoodsListLabel[i].setBounds(28 + Flag * 51, 415+13, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);

					} else if (Flag == 6) {
						Flag = 0;
						count++;
					}
				}

				// 修改密码按钮
				(this.btnchangepwd = new GoodPanelBtn("inkImg/hongmu/1/B31h.png", 1,
						 "设","","")).addMouseListener((MouseListener)new WLLMouslisten(24));
//				this.btnchangepwd.setBounds(199, 180+13, 18, 18);
				this.btnchangepwd.setBounds(221 , 180+13, 18, 18);
				this.add((Component)this.btnchangepwd);
				Font font1 = new Font("楷体", 1, 14);final Color colorx1 = new Color(227, 23, 13);
				labZfz = new JLabel();
//				labZfz.setText("Ctrl+右键一键使用物品");
				labZfz.setBounds(140, 12, 200, 14);
				labZfz.setForeground(colorx1);
				labZfz.setFont(font1);
				this.add(labZfz);
				(this.btnTime = new GoodPanelBtn("inkImg/old/pack/hmTime.png", 1,
						"","","")).addMouseListener((MouseListener)new WLLMouslisten(24));
				this.btnTime.setBounds(199, 180+13, 18, 18);
				this.add((Component)this.btnTime);


				//
				(this.btnunlock = new GoodPanelBtn("inkImg/hongmu/1/B31h.png", 1, "解","",""))
						.setBounds(221 , 180+13, 18, 18);

				// 单个物品加锁按钮
				btngoodlock = new GoodAndPetLockBtn("inkImg/hongmu/1/a8.png", 1, 1);
				btngoodlock.setBounds(155, 180+13, 18, 18);
				this.add(btngoodlock);
				// 单个物品解锁按钮
				btngoodunlock = new GoodAndPetLockBtn("inkImg/hongmu/1/a9.png", 1, 2);
				btngoodunlock.setBounds(177, 180+13, 18, 18);
				this.add(btngoodunlock);

				btnrights = new goodbtn[6];
				for (int i = 0; i < btnrights.length; i++) {
//					btnrights[i] = new goodbtn(imageMap.getImgMap().get("C0"+(i+1)),"C0"+(i+1), 0, this, i);
					btnrights[i] = new goodbtn("inkImg/hongmu/1/SBG.png", 0, this, i);
					btnrights[i].setBounds(333, 259+13 + i * 35, 24, 31);
					this.add(btnrights[i]);
				}

				this.renwuan = new GoodPanelBtn("inkImg/old/1/workshop_packbtnRW.png", 1, "..");
				this.renwuan.setBounds(304, 325+13+5*35, 30, 35);
				this.add(renwuan);

				labGemIntensify = new JLabel();
				labGemIntensify.setBounds(145, 34+13, 32, 29);
				labGemIntensify.setIcon(GoodsListFromServerUntil.imgpath("gemIntensifyImg"));
				labGemIntensify.addMouseListener(new MouseListener() {




					@Override
					public void mouseReleased(MouseEvent e) {

					}

					@Override
					public void mousePressed(MouseEvent e) {

					}

					@Override
					public void mouseExited(MouseEvent e) {
						FormsManagement.HideForm(46);// 隐藏窗体
					}

					@Override
					public void mouseEntered(MouseEvent e) {
						PathPoint point = GameJpanel.getGameJpanel().mousepath();
						MsgJframe.getJframe().getJapnel()
								.zsGemIntensify(RoleProperty.getRoleProperty().getQhv(), point.getX(), point.getY());
					}

					@Override
					public void mouseClicked(MouseEvent e) {

					}
				});
				labGemIntensify.setOpaque(false);
//    			this.add(labGemIntensify);
				(this.huishou = new GoodPanelBtn("inkImg/hongmu/1/B32h.png", 1, "一键回收","","")).addMouseListener((MouseListener)new WLLMouslisten(36));
				this.huishou.setBounds(215, 205+13, 51, 17);
				this.add((Component)this.huishou);

				(this.xingpan = new GoodPanelBtn("inkImg/hongmu/1/B30h.png", 1, "星盘","","")).addMouseListener((MouseListener)new WLLMouslisten(35));
				this.xingpan.setBounds(323, 205+13, 34, 17);
				this.add((Component)this.xingpan);

				(this.ckBtn = new GoodPanelBtn("inkImg/number/b8/hmck.png", 1, "","","")).addMouseListener((MouseListener)new WLLMouslisten(34));
				this.ckBtn.setBounds(165, 223, 40, 17);
				this.add((Component)this.ckBtn);


				btnlock = new GoodPanelBtn("inkImg/hongmu/1/60_26.png", 1, "星录",null);
				btnlock.setBounds(298, 230+13, 60, 26);
				this.add(btnlock);


				// 形象装扮按钮
				btnXxzb = new SpecificBtn("inkImg/hongmu/1/B30h.png", 1, UIUtils.COLOR_BTNPUTONG2, "装扮", 1);
				btnXxzb.setBounds(278, 205+13, 34, 17);
				this.add(btnXxzb);


				// 在线摆摊
				(this.btnlock1 = new GoodPanelBtn("inkImg/hongmu/1/B30h.png", 1, "摆摊","",""))
//						.setBounds(323, 205+13, 34, 17);
						.setBounds(235, 205+13, 34, 17);
				this.add((Component)this.btnlock1);
			}
    	}else {
			if(MyIsif.getStyle().equals("水墨UI")) {
				this.imgIconList = null;
				this.TeamStateS = 0;
				this.choseGoodsJLabel = new JLabel[12];
				this.choseGoodsMouslistens = new TakeOffEquipmentMouslisten[12];
				this.GoodsListLabel = new JLabel[24];
				this.goodsMouslistens = new GoodsMouslisten[24];
				this.shoptext = false;
				this.icon = new ImageIcon("inkImg/newbackground/B103.png");

				this.setPreferredSize(new Dimension(418, 480));
				this.setBackground(UIUtils.Color_BACK);
				this.setLayout(null);
				// 关闭按钮事件
				FormsOnOffBtn offBtn = new FormsOnOffBtn("inkImg/old/2/1.png", 1, 2);
				offBtn.setBounds(409 - 38, 10, 25, 25);
				this.add(offBtn);


				point = new PathPoint();

				// 初始化装备jlabel
				for (int i = 0; i < choseGoodsJLabel.length; i++) {

					choseGoodsJLabel[i] = new JLabel();
					PathPoint pathPoint = path(i);
					choseGoodsJLabel[i].setBounds(pathPoint.getX(), pathPoint.getY(), 50, 50);
					choseGoodsMouslistens[i] = new TakeOffEquipmentMouslisten(i);
					choseGoodsJLabel[i].addMouseListener(choseGoodsMouslistens[i]);
					this.add(choseGoodsJLabel[i]);
				}

				(TestpackJapnel.clearAll = new GoodPanelBtn("skin/8100226/newbutton/syaj.png", 1, "当前物品栏整理")).setBounds(280+20, 230, 117, 24);
				TestpackJapnel.clearAll.setVisible(false);
				this.add((Component)TestpackJapnel.clearAll);
				(TestpackJapnel.clearAll1 = new GoodPanelBtn("skin/8100226/newbutton/syaj.png", 1, "全部物品栏整理")).setBounds(280+20, 230+24, 117, 24);
				TestpackJapnel.clearAll1.setVisible(false);
				this.add((Component)TestpackJapnel.clearAll1);
				(TestpackJapnel.qingli = new GoodPanelBtn("skin/8100226/newbutton/syaj.png", 1,  "当前物品栏清理")).setBounds(280+20, 230+24*2, 117, 24);
				TestpackJapnel.qingli.setVisible(false);
				this.add((Component)TestpackJapnel.qingli);
				(TestpackJapnel.moyex = new MouseStyleBtn("skin/8100226/newbutton/B20.png", 1, "整理", "整理")).setBounds(235, 230, 59, 24);
				this.add((Component)TestpackJapnel.moyex);


				int Flag = 0, count = 1;// 用来标记行和列
				// 存放物品的表格1~24
				for (int i = 0; i < 24; i++) {
					GoodsListLabel[i] = new JLabel();
					goodsMouslistens[i] = new GoodsMouslisten(i);
					GoodsListLabel[i].addMouseListener(goodsMouslistens[i]);
					if ((Flag < 6) && (count == 1)) {
						GoodsListLabel[i].setBounds(47 + Flag * 51, 260, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 2)) {
						GoodsListLabel[i].setBounds(47 + Flag * 51, 311, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 3)) {
						GoodsListLabel[i].setBounds(47 + Flag * 51, 362, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 4)) {
						GoodsListLabel[i].setBounds(47 + Flag * 51, 413, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);

					} else if (Flag == 6) {
						Flag = 0;
						count++;
					}
				}

				// 修改密码按钮
				(this.btnchangepwd = new GoodPanelBtn("skin/8100226/newbutton/B31.png", 1,
						 "设","",""))
						.addMouseListener((MouseListener)new WLLMouslisten(24));
//				this.btnchangepwd.setBounds(219, 180, 18, 18);
				this.btnchangepwd.setBounds(241 , 180, 18, 18);
				this.add((Component)this.btnchangepwd);
				Font font1 = new Font("楷体", 1, 14);final Color colorx1 = new Color(227, 23, 13);
				labZfz = new JLabel();
//				labZfz.setText("Ctrl+右键一键使用物品");
				labZfz.setBounds(140, 12, 200, 14);
				labZfz.setForeground(colorx1);
				labZfz.setFont(font1);
				this.add(labZfz);

				this.btnTime = new GoodPanelBtn("inkImg/old/pack/smTime.png", 1, "..");
				btnTime.addMouseListener((MouseListener)new WLLMouslisten(24));
				this.btnTime.setBounds(219, 180, 18, 18);
				this.add((Component)this.btnTime);


				(this.btnunlock = new GoodPanelBtn("skin/8100226/newbutton/B31.png", 1, "解","",""))
						.setBounds(241 , 180, 18, 18);

				// 单个物品加锁按钮
				btngoodlock = new GoodAndPetLockBtn("skin/8100226/newbutton/K156.png", 1, 1);
				btngoodlock.setBounds(175, 180, 18, 18);
				this.add(btngoodlock);
				// 单个物品解锁按钮
				btngoodunlock = new GoodAndPetLockBtn("skin/8100226/newbutton/K157.png", 1, 2);
				btngoodunlock.setBounds(197, 180, 18, 18);
				this.add(btngoodunlock);

				btnrights = new goodbtn[6];
				for (int i = 0; i < btnrights.length; i++) {
					btnrights[i] = new goodbtn("skin/8100226/newbutton/C0"+(i+1)+".png", 0, this, i);
					btnrights[i].setBounds(353, 259 + i * 35, 35, 31);
					this.add(btnrights[i]);
				}
				this.renwuan = new GoodPanelBtn("inkImg/old/1/workshop_packbtnRW.png", 1, "..");
				this.renwuan.setBounds(324, 325+5*35, 30, 35);
				this.add(renwuan);

				labGemIntensify = new JLabel();
				labGemIntensify.setBounds(165, 34, 32, 29);
				labGemIntensify.setIcon(GoodsListFromServerUntil.imgpath("gemIntensifyImg"));
				labGemIntensify.addMouseListener(new MouseListener() {

					@Override
					public void mouseReleased(MouseEvent e) {

					}

					@Override
					public void mousePressed(MouseEvent e) {

					}

					@Override
					public void mouseExited(MouseEvent e) {
						FormsManagement.HideForm(46);// 隐藏窗体
					}

					@Override
					public void mouseEntered(MouseEvent e) {
						PathPoint point = GameJpanel.getGameJpanel().mousepath();
						MsgJframe.getJframe().getJapnel()
								.zsGemIntensify(RoleProperty.getRoleProperty().getQhv(), point.getX(), point.getY());
					}

					@Override
					public void mouseClicked(MouseEvent e) {

					}
				});
				labGemIntensify.setOpaque(false);
				this.add(labGemIntensify);

				(this.huishou = new GoodPanelBtn("skin/8100226/newbutton/huishou.png", 1, "一键回收","","")).addMouseListener((MouseListener)new WLLMouslisten(36));
				this.huishou.setBounds(8, 280, 30, 255);
				this.add((Component)this.huishou);

				(this.xingpan = new GoodPanelBtn("skin/8100226/newbutton/B30.png", 1, "星盘","","")).addMouseListener((MouseListener)new WLLMouslisten(35));
				this.xingpan.setBounds(343, 205, 34, 17);
				this.add((Component)this.xingpan);

				(this.ckBtn = new GoodPanelBtn("inkImg/number/b8/smck.png", 1, "","","")).addMouseListener((MouseListener)new WLLMouslisten(34));
				this.ckBtn.setBounds(187, 209, 40, 17);
				this.add((Component)this.ckBtn);


				btnlock = new GoodPanelBtn("skin/8100226/newbutton/B20.png", 1, "星录",null);//UIUtils.TEXT_HY19
				btnlock.setBounds(318, 230, 59, 24);
				this.add(btnlock);


				// 形象装扮按钮
				btnXxzb = new SpecificBtn("skin/8100226/newbutton/B30.png", 1, UIUtils.COLOR_BTNTEXT, "装扮", 1);
				btnXxzb.setBounds(298, 205, 34, 17);
				this.add(btnXxzb);



				// 在线摆摊
				(this.btnlock1 = new GoodPanelBtn("skin/8100226/newbutton/B30.png", 1, "摆摊","",""))
//						.setBounds(343, 205, 34, 17);
						.setBounds(255, 205, 34, 17);
				this.add((Component)this.btnlock1);// 手动设置字体颜色为白色
				this.btnlock1.setForeground(Color.WHITE);


			}else{
				this.imgIconList = null;
				this.TeamStateS = 0;
				this.choseGoodsJLabel = new JLabel[12];
				this.choseGoodsMouslistens = new TakeOffEquipmentMouslisten[12];
				this.GoodsListLabel = new JLabel[24];
				this.goodsMouslistens = new GoodsMouslisten[24];
				this.shoptext = false;
				this.icon = new ImageIcon("inkImg/hongmu/B103h.png");

				this.setPreferredSize(new Dimension(395, 507));
				this.setBackground(UIUtils.Color_BACK);
				this.setLayout(null);
				// 关闭按钮事件
				FormsOnOffBtn offBtn = new FormsOnOffBtn("inkImg/hongmu/1/s74.png", 1, 2);
				offBtn.setBounds(395 - 25, 0, 23, 23);
				this.add(offBtn);


				point = new PathPoint();

				// 初始化装备jlabel
				for (int i = 0; i < choseGoodsJLabel.length; i++) {

					choseGoodsJLabel[i] = new JLabel();
					PathPoint pathPoint = path(i);
					choseGoodsJLabel[i].setBounds(pathPoint.getX(), pathPoint.getY(), 50, 50);
					choseGoodsMouslistens[i] = new TakeOffEquipmentMouslisten(i);
					choseGoodsJLabel[i].addMouseListener(choseGoodsMouslistens[i]);
					this.add(choseGoodsJLabel[i]);
				}

				(TestpackJapnel.clearAll = new GoodPanelBtn("skin/8100226/newbutton/syajh.png", 1, "当前物品栏整理")).setBounds(275, 230+13, 117, 24);
				TestpackJapnel.clearAll.setVisible(false);
				this.add((Component)TestpackJapnel.clearAll);
				(TestpackJapnel.clearAll1 = new GoodPanelBtn("skin/8100226/newbutton/syajh.png", 1, "全部物品栏整理")).setBounds(275, 230+13+24, 117, 24);
				TestpackJapnel.clearAll1.setVisible(false);
				this.add((Component)TestpackJapnel.clearAll1);
				(TestpackJapnel.qingli = new GoodPanelBtn("skin/8100226/newbutton/syajh.png", 1,  "当前物品栏清理")).setBounds(275, 230+13+24*2, 117, 24);
				TestpackJapnel.qingli.setVisible(false);
				this.add((Component)TestpackJapnel.qingli);
				(TestpackJapnel.moyex = new MouseStyleBtn("inkImg/hongmu/1/60_26.png", 1, "整理", "整理"))//UIUtils.TEXT_HY19
						.setBounds(215, 230+13, 60, 26);
				this.add((Component)TestpackJapnel.moyex);


				int Flag = 0, count = 1;// 用来标记行和列
				// 存放物品的表格1~24
				for (int i = 0; i < 24; i++) {
					GoodsListLabel[i] = new JLabel();
					goodsMouslistens[i] = new GoodsMouslisten(i);
					GoodsListLabel[i].addMouseListener(goodsMouslistens[i]);
					if ((Flag < 6) && (count == 1)) {
						GoodsListLabel[i].setBounds(28 + Flag * 51, 260+13, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 2)) {
						GoodsListLabel[i].setBounds(28 + Flag * 51, 311+13, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 3)) {
						GoodsListLabel[i].setBounds(28 + Flag * 51, 362+13, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);
					}
					if ((Flag < 6) && (count == 4)) {
						GoodsListLabel[i].setBounds(28 + Flag * 51, 413+13, 49, 49);
						Flag++;// 用来标记行
						this.add(GoodsListLabel[i]);

					} else if (Flag == 6) {
						Flag = 0;
						count++;
					}
				}

				// 修改密码按钮
				(this.btnchangepwd = new GoodPanelBtn("inkImg/hongmu/1/B31h.png", 1,
						"设","",""))
						.addMouseListener((MouseListener)new WLLMouslisten(24));
//				this.btnchangepwd.setBounds(199, 180+13, 18, 18);
				this.btnchangepwd.setBounds(221 , 180+13, 18, 18);
				this.add((Component)this.btnchangepwd);
				Font font1 = new Font("楷体", 1, 14);final Color colorx1 = new Color(227, 23, 13);
				labZfz = new JLabel();
//				labZfz.setText("Ctrl+右键一键使用物品");
				labZfz.setBounds(140, 12, 200, 14);
				labZfz.setForeground(colorx1);
				labZfz.setFont(font1);
				this.add(labZfz);

				(this.btnTime = new GoodPanelBtn("inkImg/old/pack/hmTime.png", 1,
						"","",""))
						.addMouseListener((MouseListener)new WLLMouslisten(24));
				this.btnTime.setBounds(199, 180+13, 18, 18);
				this.add((Component)this.btnTime);



				(this.btnunlock = new GoodPanelBtn("inkImg/hongmu/1/B31h.png", 1, "解","",""))
						.setBounds(221 , 180+13, 18, 18);

				// 单个物品加锁按钮
				btngoodlock = new GoodAndPetLockBtn("inkImg/hongmu/1/a8.png", 1, 1);
				btngoodlock.setBounds(155, 180+13, 18, 18);
				this.add(btngoodlock);
				// 单个物品解锁按钮
				btngoodunlock = new GoodAndPetLockBtn("inkImg/hongmu/1/a9.png", 1, 2);
				btngoodunlock.setBounds(177, 180+13, 18, 18);
				this.add(btngoodunlock);

				btnrights = new goodbtn[6];
				for (int i = 0; i < btnrights.length; i++) {
//					btnrights[i] = new goodbtn(imageMap.getImgMap().get("C0"+(i+1)),"C0"+(i+1), 0, this, i);
					btnrights[i] = new goodbtn("inkImg/hongmu/1/SBG.png", 0, this, i);
					btnrights[i].setBounds(333, 259+13 + i * 35, 24, 31);
					this.add(btnrights[i]);
				}
				this.renwuan = new GoodPanelBtn("inkImg/old/1/workshop_packbtnRW.png", 1, "..");
				this.renwuan.setBounds(304, 325+13+5*35, 30, 35);
				this.add(renwuan);

				labGemIntensify = new JLabel();
				labGemIntensify.setBounds(145, 34+13, 32, 29);
				labGemIntensify.setIcon(GoodsListFromServerUntil.imgpath("gemIntensifyImg"));
				labGemIntensify.addMouseListener(new MouseListener() {

					@Override
					public void mouseReleased(MouseEvent e) {

					}

					@Override
					public void mousePressed(MouseEvent e) {

					}

					@Override
					public void mouseExited(MouseEvent e) {
						FormsManagement.HideForm(46);// 隐藏窗体
					}

					@Override
					public void mouseEntered(MouseEvent e) {
						PathPoint point = GameJpanel.getGameJpanel().mousepath();
						MsgJframe.getJframe().getJapnel()
								.zsGemIntensify(RoleProperty.getRoleProperty().getQhv(), point.getX(), point.getY());
					}

					@Override
					public void mouseClicked(MouseEvent e) {

					}
				});
				labGemIntensify.setOpaque(false);
				this.add(labGemIntensify);

				(this.huishou = new GoodPanelBtn("inkImg/hongmu/1/huishou2.png", 1, "一键回收","","")).addMouseListener((MouseListener)new WLLMouslisten(36));
				this.huishou.setBounds(2, 300, 24, 240);
				this.add((Component)this.huishou);

				(this.xingpan = new GoodPanelBtn("inkImg/hongmu/1/B30h.png", 1, "星盘","","")).addMouseListener((MouseListener)new WLLMouslisten(35));
				this.xingpan.setBounds(323, 205+13, 34, 17);
				this.add((Component)this.xingpan);

				(this.ckBtn = new GoodPanelBtn("inkImg/number/b8/hmck.png", 1, "","","")).addMouseListener((MouseListener)new WLLMouslisten(34));
				this.ckBtn.setBounds(165, 223, 40, 17);
				this.add((Component)this.ckBtn);


				btnlock = new GoodPanelBtn("inkImg/hongmu/1/60_26.png", 1, "星录",null);//UIUtils.TEXT_HY19
				btnlock.setBounds(298, 230+13, 60, 26);
				this.add(btnlock);


				// 形象装扮按钮
				btnXxzb = new SpecificBtn("inkImg/hongmu/1/B30h.png", 1, UIUtils.COLOR_BTNPUTONG2, "装扮", 1);
				btnXxzb.setBounds(278, 205+13, 34, 17);
				this.add(btnXxzb);



				// 在线摆摊
				(this.btnlock1 = new GoodPanelBtn("inkImg/hongmu/1/B30h.png", 1, "摆摊","",""))
//						.setBounds(323, 205+13, 34, 17);
						.setBounds(235, 205+13, 34, 17);
				this.add((Component)this.btnlock1);

			}

    	}
    }

	/** 是否展示宝石炼化强化属性 */
    public void isShowGemImg(final int lvl) {
        this.labGemIntensify.setVisible(lvl > 0);
    }
	/**
	 * 画出预选边框
	 *
	 * @return
	 */
    public void PaintingText(final int goodPosition) {
        this.goodPosition = goodPosition;
        this.shoptext = true;
    }
	/**
	 * 清除预选边框
	 *
	 * @return
	 */
    public void ClearText() {
        this.shoptext = false;
    }

	public void BtnChange() {
	}


    @Override
    protected void paintComponent(final Graphics g) {
        super.paintComponent(g);
        Graphics2D graphics2d = (Graphics2D) g;
        ConfigureBean allConfigure = UserMessUntil.getConfigureBean();
    	Map<BigDecimal, Configure> item = allConfigure.getAllConfigure();
    	Configure configure = item.get(new BigDecimal(1));
    	int szz = 5;//3种族
    	if(configure.getLzjskg()!=null) {
    		szz = Integer.parseInt(configure.getLzjskg());
    	}
        if(szz == 3) {
			if(MyIsif.getStyle().equals("水墨UI")) {
				graphics2d.drawImage(this.icon.getImage(), 0, 0, 409, 480, (ImageObserver)this);
				// 道具栏
				// 绘制人物动态图
				if (ImageMixDeal.userimg != null) {
					long se=ImageMixDeal.userimg.getRoleShow().getSpecies_id().longValue();
					if (GoodsListFromServerUntil.getChoseGoodsList()[0]!=null) {
						long w=TimeLimit.good(Integer.parseInt(GoodsListFromServerUntil.getChoseGoodsList()[0].getSkin()));
						if (w!=0) {
						//	if (RoleProperty.getRoleProperty().getQhv()>=12) {
								if ((w==1&&se==20001)||(w==2&&se==20001)||(w==1&&se==20002)||(w==3&&se==20002)||(w==4&&se==20003)||(w==5&&se==20003)||(w==9&&se==20004)||(w==8&&se==20004)||(w==10&&se==20005)||(w==7&&se==20005)||(w==10&&se==20006)||(w==12&&se==20006)||(w==1&&se==20007)||(w==5&&se==20007)||(w==1&&se==20008)||(w==10&&se==20008)||(w==2&&se==20009)||(w==6&&se==20009)||(w==8&&se==20010)||(w==1&&se==20010)||(w==12&&se==21001)||(w==7&&se==21001)||(w==10&&se==21002)||(w==13&&se==21002)||(w==10&&se==21003)||(w==12&&se==21003)||(w==9&&se==21004)||(w==10&&se==21004)||(w==7&&se==21005)||(w==1&&se==21005)||(w==14&&se==21006)||(w==8&&se==21006)||(w==12&&se==21007)||(w==4&&se==21007)||(w==10&&se==21008)||(w==11&&se==21008)||(w==10&&se==21009)||(w==4&&se==21009)||(w==14&&se==21010)||(w==9&&se==21010)||(w==12&&se==22001)||(w==3&&se==22001)||(w==14&&se==22002)||(w==1&&se==22002)||(w==7&&se==22003)||(w==14&&se==22003)||(w==10&&se==22004)||(w==5&&se==22004)||(w==7&&se==22005)||(w==16&&se==22005)||(w==1&&se==22006)||(w==12&&se==22006)||(w==12&&se==22007)||(w==14&&se==22007)||(w==11&&se==22008)||(w==16&&se==22008)||(w==1&&se==22009)||(w==13&&se==22009)||(w==16&&se==22010)||(w==17&&se==22010)||(w==1&&se==23001)||(w==10&&se==23001)||(w==12&&se==23002)||(w==5&&se==23002)||(w==13&&se==23003)||(w==6&&se==23003)||(w==9&&se==23004)||(w==8&&se==23004)||(w==17&&se==23005)||(w==11&&se==23005)||(w==11&&se==23006)||(w==16&&se==23006)||(w==1&&se==24001)||(w==6&&se==24001)||(w==12&&se==24002)||(w==10&&se==24002)||(w==18&&se==24003)||(w==11&&se==24003)||(w==9&&se==24004)||(w==3&&se==24004)||(w==18&&se==24005)||(w==12&&se==24005)||(w==1&&se==24006)||(w==17&&se==24006)) {w+=18;}
						//	}
							se=(w<<32)|se;
						}
					}
					if (part == null) {
						part = SpriteFactory.createPart(se, 2, 1,null);
					} else {
						part = SpriteFactory.setPart(part, 1,se+"");
					}
					part.draw(graphics2d, 220, 155, 4, ImageMixDeal.userimg.getTime());
				}
				if (shoptext) {
					// 判断属于几行几列
					int shop_x = goodPosition % 6;
					int shop_y = goodPosition / 6;
					graphics2d.setColor(Color.red);
					graphics2d.drawLine(47 + shop_x * 51, 262 + shop_y * 51, 94 + shop_x * 51, 262 + shop_y * 51);// 左上横线
					graphics2d.drawLine(47 + shop_x * 51, 262 + shop_y * 51, 47 + shop_x * 51, 309 + shop_y * 51);// 左上竖线
					graphics2d.drawLine(94 + shop_x * 51, 262 + shop_y * 51, 94 + shop_x * 51, 309 + shop_y * 51);// 右下横线
					graphics2d.drawLine(47 + shop_x * 51, 309 + shop_y * 51, 94 + shop_x * 51, 309 + shop_y * 51);// 右下竖线
				}
				// 画物品的图片和数量
				GoodsListFromServerUntil.draw(graphics2d, 47, 262);
				GoodsListFromServerUntil.drawLock(graphics2d, this);
				LoginResult login = RoleData.getRoleData().getLoginResult();
				Util.drawPrice(graphics2d, login.getGold(), 82, 222);
			Util.drawPrice(graphics2d, login.getSavegold(), 82, 246);
//				Util.drawPrice(graphics2d, login.getShigongx(), 82, 246);
			}else{
				graphics2d.drawImage(this.icon.getImage(), 0, 0, 395, 507, (ImageObserver)this);
				// 道具栏
				// 绘制人物动态图
				if (ImageMixDeal.userimg != null) {
					long se=ImageMixDeal.userimg.getRoleShow().getSpecies_id().longValue();
					if (GoodsListFromServerUntil.getChoseGoodsList()[0]!=null) {
						long w=TimeLimit.good(Integer.parseInt(GoodsListFromServerUntil.getChoseGoodsList()[0].getSkin()));
						if (w!=0) {
						//	if (RoleProperty.getRoleProperty().getQhv()>=12) {
								if ((w==1&&se==20001)||(w==2&&se==20001)||(w==1&&se==20002)||(w==3&&se==20002)||(w==4&&se==20003)||(w==5&&se==20003)||(w==9&&se==20004)||(w==8&&se==20004)||(w==10&&se==20005)||(w==7&&se==20005)||(w==10&&se==20006)||(w==12&&se==20006)||(w==1&&se==20007)||(w==5&&se==20007)||(w==1&&se==20008)||(w==10&&se==20008)||(w==2&&se==20009)||(w==6&&se==20009)||(w==8&&se==20010)||(w==1&&se==20010)||(w==12&&se==21001)||(w==7&&se==21001)||(w==10&&se==21002)||(w==13&&se==21002)||(w==10&&se==21003)||(w==12&&se==21003)||(w==9&&se==21004)||(w==10&&se==21004)||(w==7&&se==21005)||(w==1&&se==21005)||(w==14&&se==21006)||(w==8&&se==21006)||(w==12&&se==21007)||(w==4&&se==21007)||(w==10&&se==21008)||(w==11&&se==21008)||(w==10&&se==21009)||(w==4&&se==21009)||(w==14&&se==21010)||(w==9&&se==21010)||(w==12&&se==22001)||(w==3&&se==22001)||(w==14&&se==22002)||(w==1&&se==22002)||(w==7&&se==22003)||(w==14&&se==22003)||(w==10&&se==22004)||(w==5&&se==22004)||(w==7&&se==22005)||(w==16&&se==22005)||(w==1&&se==22006)||(w==12&&se==22006)||(w==12&&se==22007)||(w==14&&se==22007)||(w==11&&se==22008)||(w==16&&se==22008)||(w==1&&se==22009)||(w==13&&se==22009)||(w==16&&se==22010)||(w==17&&se==22010)||(w==1&&se==23001)||(w==10&&se==23001)||(w==12&&se==23002)||(w==5&&se==23002)||(w==13&&se==23003)||(w==6&&se==23003)||(w==9&&se==23004)||(w==8&&se==23004)||(w==17&&se==23005)||(w==11&&se==23005)||(w==11&&se==23006)||(w==16&&se==23006)||(w==1&&se==24001)||(w==6&&se==24001)||(w==12&&se==24002)||(w==10&&se==24002)||(w==18&&se==24003)||(w==11&&se==24003)||(w==9&&se==24004)||(w==3&&se==24004)||(w==18&&se==24005)||(w==12&&se==24005)||(w==1&&se==24006)||(w==17&&se==24006)) {w+=18;}
						//	}
							se=(w<<32)|se;
						}
					}
					if (part == null) {
						part = SpriteFactory.createPart(se, 2, 1,null);
					} else {
						part = SpriteFactory.setPart(part, 1,se+"");
					}
					part.draw(graphics2d, 200, 166, 4, ImageMixDeal.userimg.getTime());
				}
				if (shoptext) {
					// 判断属于几行几列
					int shop_x = goodPosition % 6;
					int shop_y = goodPosition / 6;
					graphics2d.setColor(Color.red);
					graphics2d.drawLine(28 + shop_x * 51, 275 + shop_y * 51, 75 + shop_x * 51, 275 + shop_y * 51);// 左上横线
					graphics2d.drawLine(28 + shop_x * 51, 275 + shop_y * 51, 28 + shop_x * 51, 322 + shop_y * 51);// 左上竖线
					graphics2d.drawLine(75 + shop_x * 51, 275 + shop_y * 51, 75 + shop_x * 51, 322 + shop_y * 51);// 右下横线
					graphics2d.drawLine(28 + shop_x * 51, 322 + shop_y * 51, 75 + shop_x * 51, 322 + shop_y * 51);// 右下竖线
				}
				// 画物品的图片和数量
				GoodsListFromServerUntil.draw(graphics2d, 28, 275);
				GoodsListFromServerUntil.drawLock(graphics2d, this);
				LoginResult login = RoleData.getRoleData().getLoginResult();
				Util.drawPrice(graphics2d, login.getGold(), 62, 235);
			Util.drawPrice(graphics2d, login.getSavegold(), 62, 259);
//				Util.drawPrice(graphics2d, login.getShigongx(), 62, 259);
			}
        }else {
			if(MyIsif.getStyle().equals("水墨UI")) {
				graphics2d.drawImage(this.icon.getImage(), 0, 0, 409, 480, (ImageObserver)this);
				// 道具栏
				// 绘制人物动态图
				if (ImageMixDeal.userimg != null) {
					long se=ImageMixDeal.userimg.getRoleShow().getSpecies_id().longValue();
					if (GoodsListFromServerUntil.getChoseGoodsList()[0]!=null) {
						long w=TimeLimit.good(Integer.parseInt(GoodsListFromServerUntil.getChoseGoodsList()[0].getSkin()));
						if (w!=0) {
						//	if (RoleProperty.getRoleProperty().getQhv()>=12) {
								if ((w==1&&se==20001)||(w==2&&se==20001)||(w==1&&se==20002)||(w==3&&se==20002)||(w==4&&se==20003)||(w==5&&se==20003)||(w==9&&se==20004)||(w==8&&se==20004)||(w==10&&se==20005)||(w==7&&se==20005)||(w==10&&se==20006)||(w==12&&se==20006)||(w==1&&se==20007)||(w==5&&se==20007)||(w==1&&se==20008)||(w==10&&se==20008)||(w==2&&se==20009)||(w==6&&se==20009)||(w==8&&se==20010)||(w==1&&se==20010)||(w==12&&se==21001)||(w==7&&se==21001)||(w==10&&se==21002)||(w==13&&se==21002)||(w==10&&se==21003)||(w==12&&se==21003)||(w==9&&se==21004)||(w==10&&se==21004)||(w==7&&se==21005)||(w==1&&se==21005)||(w==14&&se==21006)||(w==8&&se==21006)||(w==12&&se==21007)||(w==4&&se==21007)||(w==10&&se==21008)||(w==11&&se==21008)||(w==10&&se==21009)||(w==4&&se==21009)||(w==14&&se==21010)||(w==9&&se==21010)||(w==12&&se==22001)||(w==3&&se==22001)||(w==14&&se==22002)||(w==1&&se==22002)||(w==7&&se==22003)||(w==14&&se==22003)||(w==10&&se==22004)||(w==5&&se==22004)||(w==7&&se==22005)||(w==16&&se==22005)||(w==1&&se==22006)||(w==12&&se==22006)||(w==12&&se==22007)||(w==14&&se==22007)||(w==11&&se==22008)||(w==16&&se==22008)||(w==1&&se==22009)||(w==13&&se==22009)||(w==16&&se==22010)||(w==17&&se==22010)||(w==1&&se==23001)||(w==10&&se==23001)||(w==12&&se==23002)||(w==5&&se==23002)||(w==13&&se==23003)||(w==6&&se==23003)||(w==9&&se==23004)||(w==8&&se==23004)||(w==17&&se==23005)||(w==11&&se==23005)||(w==11&&se==23006)||(w==16&&se==23006)||(w==1&&se==24001)||(w==6&&se==24001)||(w==12&&se==24002)||(w==10&&se==24002)||(w==18&&se==24003)||(w==11&&se==24003)||(w==9&&se==24004)||(w==3&&se==24004)||(w==18&&se==24005)||(w==12&&se==24005)||(w==1&&se==24006)||(w==17&&se==24006)) {w+=18;}
						//	}
							se=(w<<32)|se;//同步光武 注释光武需求条件
						}
					}
					if (part == null) {
						part = SpriteFactory.createPart(se, 2, 1,null);
					} else {
						part = SpriteFactory.setPart(part, 1,se+"");
					}
					part.draw(graphics2d, 220, 155, 4, ImageMixDeal.userimg.getTime());
				}
				if (shoptext) {
					// 判断属于几行几列
					int shop_x = goodPosition % 6;
					int shop_y = goodPosition / 6;
					graphics2d.setColor(Color.red);
					graphics2d.drawLine(48 + shop_x * 51, 260 + shop_y * 51, 96 + shop_x * 51, 260 + shop_y * 51);// 左上横线
					graphics2d.drawLine(48 + shop_x * 51, 260 + shop_y * 51, 48 + shop_x * 51, 309 + shop_y * 51);// 左上竖线
					graphics2d.drawLine(96 + shop_x * 51, 260 + shop_y * 51, 96 + shop_x * 51, 309 + shop_y * 51);// 右下横线
					graphics2d.drawLine(48 + shop_x * 51, 309 + shop_y * 51, 96 + shop_x * 51, 309 + shop_y * 51);// 右下竖线
				}
				// 画物品的图片和数量
				GoodsListFromServerUntil.draw(graphics2d, 47, 262);
				GoodsListFromServerUntil.drawLock(graphics2d, this);
				LoginResult login = RoleData.getRoleData().getLoginResult();
				Util.drawPrice(graphics2d, login.getGold(), 82, 222);
                Util.drawPrice(graphics2d, login.getSavegold(), 82, 246);
//				Util.drawPrice(graphics2d, login.getShigongx(), 82, 246);
			}else{
				graphics2d.drawImage(this.icon.getImage(), 0, 0, 395, 507, (ImageObserver)this);
				// 道具栏
				// 绘制人物动态图
				if (ImageMixDeal.userimg != null) {
					long se=ImageMixDeal.userimg.getRoleShow().getSpecies_id().longValue();
					if (GoodsListFromServerUntil.getChoseGoodsList()[0]!=null) {
						long w=TimeLimit.good(Integer.parseInt(GoodsListFromServerUntil.getChoseGoodsList()[0].getSkin()));
						if (w!=0) {
							//if (RoleProperty.getRoleProperty().getQhv()>=12) {
								if ((w==1&&se==20001)||(w==2&&se==20001)||(w==1&&se==20002)||(w==3&&se==20002)||(w==4&&se==20003)||(w==5&&se==20003)||(w==9&&se==20004)||(w==8&&se==20004)||(w==10&&se==20005)||(w==7&&se==20005)||(w==10&&se==20006)||(w==12&&se==20006)||(w==1&&se==20007)||(w==5&&se==20007)||(w==1&&se==20008)||(w==10&&se==20008)||(w==2&&se==20009)||(w==6&&se==20009)||(w==8&&se==20010)||(w==1&&se==20010)||(w==12&&se==21001)||(w==7&&se==21001)||(w==10&&se==21002)||(w==13&&se==21002)||(w==10&&se==21003)||(w==12&&se==21003)||(w==9&&se==21004)||(w==10&&se==21004)||(w==7&&se==21005)||(w==1&&se==21005)||(w==14&&se==21006)||(w==8&&se==21006)||(w==12&&se==21007)||(w==4&&se==21007)||(w==10&&se==21008)||(w==11&&se==21008)||(w==10&&se==21009)||(w==4&&se==21009)||(w==14&&se==21010)||(w==9&&se==21010)||(w==12&&se==22001)||(w==3&&se==22001)||(w==14&&se==22002)||(w==1&&se==22002)||(w==7&&se==22003)||(w==14&&se==22003)||(w==10&&se==22004)||(w==5&&se==22004)||(w==7&&se==22005)||(w==16&&se==22005)||(w==1&&se==22006)||(w==12&&se==22006)||(w==12&&se==22007)||(w==14&&se==22007)||(w==11&&se==22008)||(w==16&&se==22008)||(w==1&&se==22009)||(w==13&&se==22009)||(w==16&&se==22010)||(w==17&&se==22010)||(w==1&&se==23001)||(w==10&&se==23001)||(w==12&&se==23002)||(w==5&&se==23002)||(w==13&&se==23003)||(w==6&&se==23003)||(w==9&&se==23004)||(w==8&&se==23004)||(w==17&&se==23005)||(w==11&&se==23005)||(w==11&&se==23006)||(w==16&&se==23006)||(w==1&&se==24001)||(w==6&&se==24001)||(w==12&&se==24002)||(w==10&&se==24002)||(w==18&&se==24003)||(w==11&&se==24003)||(w==9&&se==24004)||(w==3&&se==24004)||(w==18&&se==24005)||(w==12&&se==24005)||(w==1&&se==24006)||(w==17&&se==24006)) {w+=18;}
						//	}
							se=(w<<32)|se;
						}
					}
					if (part == null) {
						part = SpriteFactory.createPart(se, 2, 1,null);
					} else {
						part = SpriteFactory.setPart(part, 1,se+"");
					}
					part.draw(graphics2d, 200, 166, 4, ImageMixDeal.userimg.getTime());
				}
				if (shoptext) {
					// 判断属于几行几列
					int shop_x = goodPosition % 6;
					int shop_y = goodPosition / 6;
					graphics2d.setColor(Color.red);
					graphics2d.drawLine(28 + shop_x * 51, 275 + shop_y * 51, 75 + shop_x * 51, 275 + shop_y * 51);// 左上横线
					graphics2d.drawLine(28 + shop_x * 51, 275 + shop_y * 51, 28 + shop_x * 51, 322 + shop_y * 51);// 左上竖线
					graphics2d.drawLine(75 + shop_x * 51, 275 + shop_y * 51, 75 + shop_x * 51, 322 + shop_y * 51);// 右下横线
					graphics2d.drawLine(28 + shop_x * 51, 322 + shop_y * 51, 75 + shop_x * 51, 322 + shop_y * 51);// 右下竖线
				}
				// 画物品的图片和数量
				GoodsListFromServerUntil.draw(graphics2d, 28, 275);
				GoodsListFromServerUntil.drawLock(graphics2d, this);
				LoginResult login = RoleData.getRoleData().getLoginResult();
				Util.drawPrice(graphics2d, login.getGold(), 62, 235);
                Util.drawPrice(graphics2d, login.getSavegold(), 62, 259);
//				Util.drawPrice(graphics2d, login.getShigongx(), 62, 259);
			}
        }
        //消除文字锯齿
        graphics2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
        //消除画图锯齿
        graphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

    }


    public int getTeamStateS() {
        return this.TeamStateS;
    }

    public void setTeamStatS(final int teamStateS) {
        this.TeamStateS = teamStateS;
    }

    public List<ImageIcon> getImgIconList() {
        return this.imgIconList;
    }

    public void setImgIconList(final List<ImageIcon> imgIconList) {
        this.imgIconList = imgIconList;
    }

    public JLabel[] getGoodsListLabel() {
        return this.GoodsListLabel;
    }

    public void setGoodsListLabel(final JLabel[] goodsListLabel) {
        this.GoodsListLabel = goodsListLabel;
    }

    public GoodsMouslisten[] getGoodsMouslistens() {
        return this.goodsMouslistens;
    }

    public void setGoodsMouslistens(final GoodsMouslisten[] goodsMouslistens) {
        this.goodsMouslistens = goodsMouslistens;
    }

    public boolean isShoptext() {
        return this.shoptext;
    }

    public void setShoptext(final boolean shoptext) {
        this.shoptext = shoptext;
    }

    public int getGoodPosition() {
        return this.goodPosition;
    }

    public void setGoodPosition(final int goodPosition) {
        this.goodPosition = goodPosition;
    }

    public GoodPanelBtn getBtnchangepwd() {
        return this.btnchangepwd;
    }

    public void setBtnchangepwd(final GoodPanelBtn btnchangepwd) {
        this.btnchangepwd = btnchangepwd;
    }

    public GoodPanelBtn getBtnunlock() {
        return this.btnunlock;
    }

    public void setBtnunlock(final GoodPanelBtn btnunlock) {
        this.btnunlock = btnunlock;
    }

    public GoodPanelBtn getBtnlock() {
        return this.btnlock;
    }

    public void setBtnlock(final GoodPanelBtn btnlock) {
        this.btnlock = btnlock;
    }

    public goodbtn[] getBtnrights() {
        return this.btnrights;
    }

    public void setBtnrights(final goodbtn[] btnrights) {
        this.btnrights = btnrights;
    }

    public JLabel getLabGemIntensify() {
        return this.labGemIntensify;
    }

    public void setLabGemIntensify(final JLabel labGemIntensify) {
        this.labGemIntensify = labGemIntensify;
    }

    public static MouseStyleBtn getMoyex() {
        return TestpackJapnel.moyex;
    }

    public static void setMoyex(final MouseStyleBtn moyex) {
        TestpackJapnel.moyex = moyex;
    }


	public SpecificBtn getBtnXxzb() {
		return btnXxzb;
	}

	public void setBtnXxzb(SpecificBtn btnXxzb) {
		this.btnXxzb = btnXxzb;
	}

	public static GoodPanelBtn getClearAll() {
		return TestpackJapnel.clearAll;
	}

	public static void setClearAll(final GoodPanelBtn clearAll) {
		TestpackJapnel.clearAll = clearAll;
	}

	public static GoodPanelBtn getClearAll1() {
		return TestpackJapnel.clearAll1;
	}

	public static void setClearAll1(final GoodPanelBtn clearAll1) {
		TestpackJapnel.clearAll1 = clearAll1;
	}

	public static GoodPanelBtn getQingli() {
		return TestpackJapnel.qingli;
	}

	public static void setQingli(final GoodPanelBtn qingli) {
		TestpackJapnel.qingli = qingli;
	}

}
